<?php


namespace biu\handler;


use biu\lib\Log;

class Error
{
    public static function error($no,$str,$file,$line){
        #echo '发生错误'.PHP_EOL;
        #print_r(func_get_args());


        switch ($no){
            case E_USER_ERROR:
                Log::err('error',$str);
                break;
            case E_USER_WARNING:
            case E_USER_NOTICE:
                Log::info('info',$str);
            default:


        }
        throw new \ErrorException('发生错误:'.$str,$no,1,$file,$line);

    }
    public static function exception(){

    }

}